const express = require('express');
const cors = require('cors');
const app = express();
app.listen(3000,()=>{console.log('玩命启动中...');
})
// 中间件配置
app.use(cors());
// 获取请求体
app.use(express.urlencoded({express:false}));
// 配置路由中间件
app.use('/api',require('./router/login.js'));